package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.StoreDTO;
import com.shanjupay.merchant.entity.Store;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author whb
 * @create 2021-12-09 09:28
 * @desciption 门店DTO和entity数据类型转换类
 */
@Mapper //对象属性之间的映射
public interface StoreConvert {
    StoreConvert INSTANCE= Mappers.getMapper(StoreConvert.class);//转换类实例

    StoreDTO entity2dto(Store entity);

    Store dto2entity(StoreDTO dto);

    List<StoreDTO> listentity2dto(List<Store> staff);
}
